<?php

App::import('vendor', 'labeler');
$l = new Labeler($format);
$l->run($addresses);

if (!Configure::read('renderPdfs')) {
	$pdfcode = $l->output(1);
	$pdfcode = r("\n","\n<br>",htmlspecialchars($pdfcode));
	e('<html>');
	e("<body>");
	e('<pre>');
	print_r($addresses);
	e(trim($pdfcode));
	e('</pre>');
	e("</body>");
	e('</html>');
} else {
	$l->ezStream();
}
?>